package org.dtrd.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.system.entity.bean.qiyeweixin.QwClientBaseInfo;
import org.dtrd.modules.system.entity.po.DtrdEntRdQwClient;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 企业微信客户
 */
@Repository
public interface DtrdEntRdQwClientMapper extends BaseMapper<DtrdEntRdQwClient> {

    /**
     * 根据id查询记录
     *
     * @param externalUserId
     * @return
     */
    DtrdEntRdQwClient getRecordById(@Param("externalUserId") String externalUserId);

    /**
     * 根据企微用户id查询信息
     * @param userIds
     * @return
     */
    List<QwClientBaseInfo> selectRecordByUserIds(@Param("userIds") String userIds);
}